package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2021/3/20
 * Time: 15:57
 * Description:
 */
@Data
@TableName("t_user_cash_order")
@ApiModel(value = "TUserCashOrderEntity", description = "数据库-用户提现订单表")
public class TUserCashOrderEntity extends AbstractPageEntity {
    @TableId(value = "cash_order_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String cashOrderId;

    @TableField("user_id")
    @ApiModelProperty(value = "提现用户id", dataType = "String", notes = "提现用户id")
    private String userId;

    @TableField("user_card_id")
    @ApiModelProperty(value = "当前提现订单的卡信息主键", dataType = "String", notes = "当前提现订单的卡信息主键")
    private String userCardId;

    @TableField("card_type")
    @ApiModelProperty(value = "卡类型码值", dataType = "String", notes = "卡类型码值")
    private String cardType;

    @TableField("cash_card_account")
    @ApiModelProperty(value = "提现账号信息，支付宝为支付宝号，银行为银行卡号", dataType = "String", notes = "提现账号信息，支付宝为支付宝号，银行为银行卡号")
    private String cashCardAccount;

    @TableField("amount")
    @ApiModelProperty(value = "用户发起提现金额", dataType = "BigDecimal", notes = "用户发起提现金额")
    private BigDecimal amount;

    @TableField("disparity_amount")
    @ApiModelProperty(value = "平台服务费（用户发起金额-到账金额）", dataType = "String", notes = "平台服务费（用户发起金额-到账金额）")
    private BigDecimal disparityAmount;

    @TableField("settle_amount")
    @ApiModelProperty(value = "用户实际到账金额（发起金额-平台服务费）", dataType = "String", notes = "用户实际到账金额（发起金额-平台服务费）")
    private BigDecimal settleAmount;

    @TableField("cash_order_status_type")
    @ApiModelProperty(value = "提现状态码值", dataType = "String", notes = "提现状态码值")
    private String cashOrderStatusType;

    @TableField("remark")
    @ApiModelProperty(value = "描述", dataType = "String", notes = "描述")
    private String remark;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;

    @TableField("operate_user_id")
    @ApiModelProperty(value = "最新操作人user_id", dataType = "String", notes = "最新操作人user_id")
    private String operateUserId;

    @TableField("operate_time")
    @ApiModelProperty(value = "最新操作时间", dataType = "Date", notes = "最新操作时间")
    private Date operateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "密码", dataType = "String", notes = "密码")
    private String password;
}
